package com.ys.service;

import org.springframework.beans.factory.annotation.Autowired;
 
import com.ys.mapper.employeesmapper;
import com.ys.po.Employees;
import com.ys.service.impl.IEmployeesService;

 
public class employeesServiceImpl implements IEmployeesService{
 
    @Autowired
    private employeesmapper empmapper; //通过@Autowired向spring容器注入UserMapper
    @Override
    //通过用户名和密码查询User
    public Employees selectEmployeesByenoAndepassword(Employees employees) throws Exception {
    	Employees emp = empmapper.selectEmployeesByenoAndepassword(employees);
        return emp;
    }
 
}